#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20231130.sql ./mysql/db
cp ../sql/ry_config_20231204.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../medical-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy medical-gateway "
cp ../medical-gateway/target/medical-gateway.jar ./medical/gateway/jar

echo "begin copy medical-auth "
cp ../medical-auth/target/medical-auth.jar ./medical/auth/jar

echo "begin copy medical-visual "
cp ../medical-visual/medical-monitor/target/medical-visual-monitor.jar  ./medical/visual/monitor/jar

echo "begin copy medical-modules-system "
cp ../medical-modules/medical-system/target/medical-modules-system.jar ./medical/modules/system/jar

echo "begin copy medical-modules-file "
cp ../medical-modules/medical-file/target/medical-modules-file.jar ./medical/modules/file/jar

echo "begin copy medical-modules-job "
cp ../medical-modules/medical-job/target/medical-modules-job.jar ./medical/modules/job/jar

echo "begin copy medical-modules-gen "
cp ../medical-modules/medical-gen/target/medical-modules-gen.jar ./medical/modules/gen/jar

